package pattern.structural.adapter.object;

/**
 * @author: chaoyang.ren  
 * @date:Jul 3, 2017  
 * @time:11:30:37 AM   
 * @email:chaoyang.ren@foxmail.com  
 * @version: 1.0
 */
public class ClassAdapter implements Targetable{
	private Source source;
	
	public ClassAdapter(Source source){  
        super();  
        this.source = source;  
    }
	public void method1() {
		source.method1();
	}
	
	public void method2() {
		System.out.println("This is method 2 in implementation!");
	}
}

